home *** CD-ROM | disk | FTP | other *** search
- GetCurPath(Drive)
-
-
- SetVariable(instructions, "Click {\b OK} or press {\b Return} to continue. "
- "To quit, click on {\b EXIT} "
- "in the lower right-hand corner of the screen, or press {\b F3}.")
-
-
- WindowTitle("Installation of Astronomical Explorations")
-
- DisplayMessage("This program will install Astronomical Explorations",
- <instructions>)
-
- SetVariable(newpath,"C:\STARS\")
-
- PromptPath(newpath,<newpath>,"Where do you want to install Astronomical Explorations ?",
- "Modify the path by default, if necessary, and click on {\b OK}
- or press {\b Return} to continue.",
- "The usual path is not valid... ")
-
- GetSpaceAvailable(space,<newpath>)
-
- IfLowerGoto(500000,<space>,continueok)
-
- ;; put the routine here if the space is missing....
- DisplayMessage("There is not enough space free on the disk to install the program..."
- "(You need at least 500 Kb of memory available on your disk) ",
- "Press {\b ok} or {\b Return} to quit installation..."
- "Free the space and start again")
-
- continueok:
- MakePath(<newpath>)
-
- OpenCopyProgress("Installation in progress...",
- "Thanks for your patience...")
-
- IfFileExistsGoto(<newpath> "stelle.exe",noncopiarerosexe)
- CopyFile("stars\stelle.exe",<newpath> "stelle.exe",500000)
-
- noncopiarerosexe:
- TranslateFile("stars\pathcd",<newpath> "pathcd",100,"Drive",<Drive>)
-
- CloseCopyProgress()
-
- OpenProgmanProgress("The installation program is adding a new Program Manager Group",
- "Thanks for your patience...")
-
- OpenProgmanGroup("Cd-Rom Editel")
-
- AddProgmanItem("Astronomical Explorations",<newpath> "stelle.exe",<newpath> "stelle.exe",0)
-
- CloseProgmanProgress()
-
-